package mytrain.kirayous;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
/*
EnableSwagger2添加依赖之后，在浏览器中输入localhost:8081/swagger-ui.html就可以访问接口文档
该注解会扫描当前类所在的包下，以及该包下面的子包的类
* */
public class TrainSwaggerApplication {

    public static void main(String[] args) {
        SpringApplication.run(TrainSwaggerApplication.class, args);
    }

}
